package com.iqiyi.pps.epg.core.model.program;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Created by liuyankui on 16-10-25.
 */
@Entity
@Table(name = "snapshot_task")
@Cache(usage = CacheConcurrencyStrategy.NONE)
public class SnapshotTask {
    private long id;
    private long taskId;
    private String snapshot;
    private String errCode;
    private String errMsg;
    private Timestamp addTime;

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getTaskId() {
        return taskId;
    }

    public void setTaskId(long taskId) {
        this.taskId = taskId;
    }

    @Column(name = "snapshot")
    public String getSnapshot() {
        return snapshot;
    }

    @Column(name = "snapshot")
    public void setSnapshot(String snapshot) {
        this.snapshot = snapshot;
    }

    @Column(name = "err_code")
    public String getErrCode() {
        return errCode;
    }

    @Column(name = "err_code")
    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }

    @Column(name = "err_msg")
    public String getErrMsg() {
        return errMsg;
    }

    @Column(name = "err_msg")
    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    @Column(name = "add_time")
    public Timestamp getAddTime() {
        return addTime;
    }

    @Column(name = "add_time")
    public void setAddTime(Timestamp addTime) {
        this.addTime = addTime;
    }
}
